import os
from pathlib import Path

required_files = [
    'main.py',
    'frame_processor.py',
    'visualization.py',
    'progress_dialog.py',
    'logger.py',
    'frame_schema_parser.py',
    'frame_schema.xml',  # 确保这个文件存在
    'build.py',
    'build_config.py',
    'runtime_hook.py'
]

def check_files():
    print("\n" + "="*50)
    print("检查必需文件...")
    missing_files = []
    
    for file in required_files:
        if not os.path.exists(file):
            missing_files.append(file)
            print(f"❌ 缺少文件: {file}")
        else:
            print(f"✓ 文件存在: {file}")
    
    if missing_files:
        print("\n警告: 以下文件缺失:")
        for file in missing_files:
            print(f"  - {file}")
    else:
        print("\n所有必需文件都存在！")
    print("="*50 + "\n")
    
    return len(missing_files) == 0

if __name__ == '__main__':
    check_files() 